<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>RaspberryPiTemperature</title>
</head>
<body>
<ul>
    <li>
        <button onclick="test()">测试温度</button>
    </li>
</ul>
</body>
<script>
    function test(){
        var url = "/temperature/test";
        fetch(url);
    }
</script>
</html>